package test.unit;

import test.entity.Book;

/**
 * 打印
 * @author WFJ
 * @create 2021-03-31 16:20
 **/
public class BookPrint {
    static Book book;

    static {
        book = new Book();
        book.setName("《帅哥程序猿成长之路》");
        book.setAuthor("WingKin");
        book.setDescription("帅哥程序猿成长为大神的失败经历！！！");
        System.out.println("static--->" + book.toString());
    }

    public void printBook(){
        System.out.println("printBook--->" + book.toString());
    }
}
